<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?:'main';
if($_RQ['op']=='main'){
}
if($_RQ['op']=='getcode'){
	$post=get_postdata();	
	$goods_id=intval($post['goods_id']);
	$url=$post['url'];
	if($goods_id){
		$code=$this->model()->getcode($url);
		pdo_update('jy_taobaoke_url',array('code'=>$code),array('gid'=>$goods_id,'uniacid'=>$_SESSION['uniacid']));
	}
	exi($code);
}